-
Notifications
You must be signed in to change notification settings - Fork 0
Add BCC and bpftrace #1822
base: master
Are you sure you want to change the base?
Add BCC and bpftrace #1822
Conversation
[Description][1]: > # BPF Compiler Collection (BCC) > > BCC is a toolkit for creating efficient kernel tracing and manipulation > programs, and includes several useful tools and examples. It makes use of > extended BPF (Berkeley Packet Filters), formally known as eBPF, a new feature > that was first added to Linux 3.15. Much of what BCC uses requires Linux 4.1 > and above. > > eBPF was [described by](https://lkml.org/lkml/2015/4/14/232) Ingo Molnár as: > > > One of the more interesting features in this cycle is the ability to > > attach eBPF programs (user-defined, sandboxed bytecode executed by the > > kernel) to kprobes. This allows user-defined instrumentation on a live > > kernel image that can never crash, hang or interfere with the kernel > > negatively. > > BCC makes BPF programs easier to write, with kernel instrumentation in C > (and includes a C wrapper around LLVM), and front-ends in Python and lua. > It is suited for many tasks, including performance analysis and network > traffic control. [1]: https://github.com/iovisor/bcc/
How do we deal with the Python package? |
I wouldn't try to put he python modules into /pkg/python-XXX, because then we'd have to rebuild the package for every python, which would be quite a burden. It could go into its own package. However, it should go into /pkg only if it has proven its usefulness and is important to multiple users. I don't think it of general value currently (e.g. because it seems that the systems are not even prepared for it, see below), so maybe install it into your home for now, get experience and if you use it routinely and still think its of general value, than suggest to install it globally? Here's a script to install it into a configurable prefix ( or /dev/shm with TESTING=1) : https://github.molgen.mpg.de/gist/donald/467aa35e3ed3cdca3828658c1246f0d6
|
So, it just needs the Linux kernel headers files. And the ones in MarIuX are outdated.
|
Should be no problem to enable CONFIG_IKHEADERS with the next kernel builds. I still don't know where to put the note to not forget this. |
like it or not: add line: remove line, when done. |
Request for CONFIG_IKHEADERS added to |
Closes: #1820